package me.orangemouse.whereyouare;

import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class IndexActivity extends Activity
{

	private LocationManager locationManager;
	private TextView txt_showAdd;
	private Button btn_getLocation;
	private Location location;

	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_index);

		txt_showAdd = (TextView) findViewById(R.id.txt_showAdd);
		btn_getLocation = (Button) findViewById(R.id.btn_getMyAdd);
		LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
//		btn_getLocation.setOnClickListener(new OnClickListener()
//		{
//
//			@Override
//			public void onClick(View v)
//			{
//				// TODO Auto-generated method stub
//				if (location != null)
//					txt_showAdd.setText(location.getLongitude() + ":"
//							+ location.getLatitude());
//				else
//				{
//					txt_showAdd.setText("null");
//				}
//			}
//		});
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu)
	{
		getMenuInflater().inflate(R.menu.activity_index, menu);
		return true;
	}
}
